package com.zhu.transform.bean;

import java.io.*;

/**
 * @author yingzhi zhu
 * date 2017/11/16.
 */
public class Tst {
    public static void main(String[] args) throws FileNotFoundException {
        InputStream inputStream = new FileInputStream("conf.txt");
        BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
        ConfBean confBean = new ConfBean();

        //配置文件中 某行被忽略的标识符
//        String ignoreStart = "##";
//        reader.lines().forEach(item->{
//            if (!item.startsWith(ignoreStart) && !"".equals(item)){
//                String key = item.split("=")[0];
//                String value = item.split("=")[1];
//                ZhuUtil.dynamicInjectValue(confBean,key,value);
//            }
//        });
//        PaymentsBean paymentsBean = JSON.parseObject("{" +
//                "\"code\": \"payCode_1\"," +
//                "\"amount\": 9.42" +
//                "}",PaymentsBean.class);
//        System.out.println(paymentsBean.getAmount());


//        String s = "" +
//                "{\"status\":\"success\",\"data\":[{\"orignCode\":\"1\",\"code\":\"payCode_1\",\"name\":\"现金\"},{\"orignCode\":\"2\",\"code\":\"payCode_2\",\"name\":\"储值卡\"},{\"orignCode\":\"3\",\"code\":\"payCode_3\",\"name\":\"银联\"},{\"orignCode\":\"4\",\"code\":\"payCode_4\",\"name\":\"次卡\"},{\"orignCode\":\"6\",\"code\":\"payCode_6\",\"name\":\"网店现金\"},{\"orignCode\":\"7\",\"code\":\"payCode_7\",\"name\":\"网店会员储值\"},{\"orignCode\":\"8\",\"code\":\"payCode_8\",\"name\":\"网店支付宝\"},{\"orignCode\":\"9\",\"code\":\"payCode_9\",\"name\":\"积分兑换\"},{\"orignCode\":\"10\",\"code\":\"payCode_10\",\"name\":\"积分抵现\"},{\"orignCode\":\"11\",\"code\":\"payCode_11\",\"name\":\"店铺支付宝\"},{\"orignCode\":\"12\",\"code\":\"payCode_12\",\"name\":\"店铺京东支付\"},{\"orignCode\":\"13\",\"code\":\"payCode_13\",\"name\":\"店铺微信钱包支付\"},{\"orignCode\":\"34\",\"code\":\"payCode_34\",\"name\":\"银联-总公司预付卡\"},{\"orignCode\":\"35\",\"code\":\"payCode_35\",\"name\":\"银联-行业会员卡\"},{\"orignCode\":\"36\",\"code\":\"payCode_36\",\"name\":\"银联-行业积分通\"},{\"orignCode\":\"17\",\"code\":\"payCode_17\",\"name\":\"网店微信支付\"},{\"orignCode\":\"18\",\"code\":\"payCode_18\",\"name\":\"盒子支付\"},{\"orignCode\":\"19\",\"code\":\"payCode_19\",\"name\":\"购物卡\"},{\"orignCode\":\"20\",\"code\":\"payCode_20\",\"name\":\"收银通\"},{\"orignCode\":\"21\",\"code\":\"payCode_21\",\"name\":\"夏商IC卡\"},{\"orignCode\":\"22\",\"code\":\"payCode_22\",\"name\":\"夏商磁条卡\"},{\"orignCode\":\"23\",\"code\":\"payCode_23\",\"name\":\"通联支付\"},{\"orignCode\":\"24\",\"code\":\"payCode_24\",\"name\":\"拉卡拉\"},{\"orignCode\":\"14\",\"code\":\"payCode_14\",\"name\":\"微信支付\"},{\"orignCode\":\"15\",\"code\":\"payCode_15\",\"name\":\"店铺支付宝\"},{\"orignCode\":\"16\",\"code\":\"payCode_16\",\"name\":\"京东支付\"},{\"orignCode\":\"37\",\"code\":\"payCode_37\",\"name\":\"在线支付\"},{\"orignCode\":\"38\",\"code\":\"payCode_38\",\"name\":\"货到付款\"},{\"orignCode\":\"25\",\"code\":\"payCode_25\",\"name\":\"启航一卡通\"},{\"orignCode\":\"39\",\"code\":\"payCode_39\",\"name\":\"美团外卖\"},{\"orignCode\":\"40\",\"code\":\"payCode_40\",\"name\":\"饿了么外卖\"},{\"orignCode\":\"41\",\"code\":\"payCode_41\",\"name\":\"百度外卖\"},{\"orignCode\":\"42\",\"code\":\"payCode_42\",\"name\":\"旺POS银联卡\"},{\"orignCode\":\"43\",\"code\":\"payCode_43\",\"name\":\"旺POS支付宝\"},{\"orignCode\":\"44\",\"code\":\"payCode_44\",\"name\":\"旺POS微信\"},{\"orignCode\":\"45\",\"code\":\"payCode_45\",\"name\":\"民生银联卡\"},{\"orignCode\":\"46\",\"code\":\"payCode_46\",\"name\":\"民生支付宝\"},{\"orignCode\":\"47\",\"code\":\"payCode_47\",\"name\":\"民生微信\"},{\"orignCode\":\"48\",\"code\":\"payCode_48\",\"name\":\"预付卡\"},{\"orignCode\":\"49\",\"code\":\"payCode_49\",\"name\":\"通联银联卡\"},{\"orignCode\":\"50\",\"code\":\"payCode_50\",\"name\":\"通联支付宝\"},{\"orignCode\":\"51\",\"code\":\"payCode_51\",\"name\":\"通联微信\"},{\"orignCode\":\"52\",\"code\":\"payCode_52\",\"name\":\"通联百度钱包\"},{\"orignCode\":\"53\",\"code\":\"payCode_53\",\"name\":\"通联钱包\"},{\"orignCode\":\"54\",\"code\":\"payCode_54\",\"name\":\"预定金\"},{\"orignCode\":\"58\",\"code\":\"payCode_58\",\"name\":\"NETS\"},{\"orignCode\":\"72\",\"code\":\"payCode_72\",\"name\":\"pospalopenpay_pingan.微信.clientscanpos\"},{\"orignCode\":\"73\",\"code\":\"payCode_73\",\"name\":\"pospalopenpay_pingan.微信.posscanclient\"},{\"orignCode\":\"74\",\"code\":\"payCode_74\",\"name\":\"pospalopenpay_pingan.支付宝.clientscanpos\"},{\"orignCode\":\"75\",\"code\":\"payCode_75\",\"name\":\"pospalopenpay_pingan.支付宝.posscanclient\"},{\"orignCode\":\"76\",\"code\":\"payCode_76\",\"name\":\"pospalopenpay_wowo.微信.posscanclient\"},{\"orignCode\":\"77\",\"code\":\"payCode_77\",\"name\":\"pospalopenpay_wowo.支付宝.posscanclient\"},{\"orignCode\":\"78\",\"code\":\"payCode_78\",\"name\":\"pospalopenpay_swiftpass.微信.posscanclient\"},{\"orignCode\":\"79\",\"code\":\"payCode_79\",\"name\":\"pospalopenpay_swiftpass.支付宝.posscanclient\"},{\"orignCode\":\"80\",\"code\":\"payCode_80\",\"name\":\"pospalopenpay_swiftpass.微信.clientscanpos\"},{\"orignCode\":\"81\",\"code\":\"payCode_81\",\"name\":\"pospalopenpay_swiftpass.支付宝.clientscanpos\"},{\"orignCode\":\"82\",\"code\":\"payCode_82\",\"name\":\"pospalopenpay_royal.royalpay.posscanclient\"},{\"orignCode\":\"83\",\"code\":\"payCode_83\",\"name\":\"pospalopenpay_royal.royalpay.clientscanpos\"},{\"orignCode\":\"84\",\"code\":\"payCode_84\",\"name\":\"pospalopenpay_ums.银联支付.clientscanpos\"},{\"orignCode\":\"85\",\"code\":\"payCode_85\",\"name\":\"pospalopenpay_omi.omipay.clientscanpos\"},{\"orignCode\":\"86\",\"code\":\"payCode_86\",\"name\":\"pospalopenpay_ums2.银联支付.posscanclient\"},{\"orignCode\":\"87\",\"code\":\"payCode_87\",\"name\":\"pospalopenpay_allin.通联微信.posscanclient\"},{\"orignCode\":\"88\",\"code\":\"payCode_88\",\"name\":\"pospalopenpay_allin.通联支付宝.posscanclient\"},{\"orignCode\":\"89\",\"code\":\"payCode_89\",\"name\":\"pospalopenpay_allin.通联QQ支付.posscanclient\"},{\"orignCode\":\"90\",\"code\":\"payCode_90\",\"name\":\"pospalopenpay_dianking.微信.posscanclient\"},{\"orignCode\":\"91\",\"code\":\"payCode_91\",\"name\":\"pospalopenpay_dianking.支付宝.posscanclient\"},{\"orignCode\":\"92\",\"code\":\"payCode_92\",\"name\":\"pospalopenpay_allin.通联微信.clientscanpos\"},{\"orignCode\":\"93\",\"code\":\"payCode_93\",\"name\":\"pospalopenpay_allin.通联支付宝.clientscanpos\"},{\"orignCode\":\"94\",\"code\":\"payCode_94\",\"name\":\"pospalopenpay_allin.通联QQ支付.clientscanpos\"},{\"orignCode\":\"95\",\"code\":\"payCode_95\",\"name\":\"pospalopenpay_omi.omipay.posscanclient\"},{\"orignCode\":\"55\",\"code\":\"payCode_55\",\"name\":\"魔方微信\"},{\"orignCode\":\"56\",\"code\":\"payCode_56\",\"name\":\"魔方支付宝\"},{\"orignCode\":\"57\",\"code\":\"payCode_57\",\"name\":\"魔方银联支付\"},{\"orignCode\":\"59\",\"code\":\"payCode_59\",\"name\":\"魔方银联扫码\"},{\"orignCode\":\"-21\",\"code\":\"payCode_-21\",\"name\":\"pospalopenpay_uline.优畅微信.posscanclient\"},{\"orignCode\":\"-22\",\"code\":\"payCode_-22\",\"name\":\"pospalopenpay_uline.优畅支付宝.posscanclient\"},{\"orignCode\":\"-23\",\"code\":\"payCode_-23\",\"name\":\"pospalopenpay_uline.优畅微信.clientscanpos\"},{\"orignCode\":\"-24\",\"code\":\"payCode_-24\",\"name\":\"pospalopenpay_uline.优畅支付宝.clientscanpos\"},{\"orignCode\":\"-5\",\"code\":\"payCode_-5\",\"name\":\"pospalopenpay_cmbc.民生银行微信.posscanclient\"},{\"orignCode\":\"-6\",\"code\":\"payCode_-6\",\"name\":\"pospalopenpay_cmbc.民生银行支付宝.posscanclient\"},{\"orignCode\":\"-7\",\"code\":\"payCode_-7\",\"name\":\"pospalopenpay_cmbc.民生银行微信.clientscanpos\"},{\"orignCode\":\"-8\",\"code\":\"payCode_-8\",\"name\":\"pospalopenpay_cmbc.民生银行支付宝.clientscanpos\"},{\"orignCode\":\"-9\",\"code\":\"payCode_-9\",\"name\":\"pospalopenpay_xdd.享多多微信.posscanclient\"},{\"orignCode\":\"-10\",\"code\":\"payCode_-10\",\"name\":\"pospalopenpay_xdd.享多多支付宝.posscanclient\"},{\"orignCode\":\"-11\",\"code\":\"payCode_-11\",\"name\":\"pospalopenpay_xdd.享多多微信.clientscanpos\"},{\"orignCode\":\"-12\",\"code\":\"payCode_-12\",\"name\":\"pospalopenpay_xdd.享多多支付宝.clientscanpos\"},{\"orignCode\":\"-13\",\"code\":\"payCode_-13\",\"name\":\"pospalopenpay_tengzone.腾云宝微信.clientscanpos\"},{\"orignCode\":\"-14\",\"code\":\"payCode_-14\",\"name\":\"pospalopenpay_tengzone.腾云宝支付宝.clientscanpos\"},{\"orignCode\":\"-15\",\"code\":\"payCode_-15\",\"name\":\"pospalopenpay_sinopaypal.翔融微信.posscanclient\"},{\"orignCode\":\"-16\",\"code\":\"payCode_-16\",\"name\":\"pospalopenpay_sinopaypal.翔融支付宝.posscanclient\"},{\"orignCode\":\"-17\",\"code\":\"payCode_-17\",\"name\":\"pospalopenpay_sinopaypal.翔融微信.clientscanpos\"},{\"orignCode\":\"-18\",\"code\":\"payCode_-18\",\"name\":\"pospalopenpay_sinopaypal.翔融支付宝.clientscanpos\"},{\"orignCode\":\"102\",\"code\":\"payCode_102\",\"name\":\"支 付 宝\"},{\"orignCode\":\"103\",\"code\":\"payCode_103\",\"name\":\"其它\"},{\"orignCode\":\"104\",\"code\":\"payCode_104\",\"name\":\"美团\"}]}" +
//                "";
//        if (s.contains("\"payCode_1\"")){
//            String[] str = s.split("\"payCode_72\",\"name\":\"");
//            System.out.println(str[1].substring(0,str[1].indexOf("\"")));
//
//        }
    }
}
